# 下标
snippet '([A-Za-z])(\d)' "auto subscript" wrA
`!p snip.rv = match.group(1)`_`!p snip.rv = match.group(2)`
endsnippet
# 当您使用括号将正则表达式的部分包装在组中时，例如(\d\d)，您可以通过match.group(i)Python 在扩展代码段中使用它们。
snippet '([A-Za-z])_(\d\d)' "auto subscript2" wrA
`!p snip.rv = match.group(1)`_{`!p snip.rv = match.group(2)`}
endsnippet
snippet xb "_{}" iA
_{$1}$0
endsnippet
# 上标
snippet pf "^2" iA
^2
endsnippet

snippet lf "^3" iA
^3
endsnippet

snippet sb "superscript" iA
^{$1}$0
endsnippet

snippet njd "n阶导" iA
^{(n)} 
endsnippet

snippet xd "正下标" i
\limits_\{ D$1 \} $0
endsnippet
